import axiosInstance from '@/api/axiosInstance'

interface saleParams {
  days?: number
  timeRange?: string
  // 其他查询条件...
}

/**overView */
export const getOverviewData = async (params?: saleParams) => {
  return axiosInstance.get('/admin/sales/overview', { params })
}
/**
 * 获取最近销售数据
 */
export const getRecentSalesData = async (params?: saleParams) => {
  return axiosInstance.get('/admin/sales/recent', { params })
}

export const getDoctorRanking = async (params?: any) => {
  return axiosInstance.get('/admin/sales/rank', { params })
}
